import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/query'
  },
  {
    path: '/query',
    name: 'query',
    component: () => import('@/views/Query.vue')
  },
  {
    path: '/qrcode',
    name: 'qrcode',
    component: () => import('@/views/QRcode.vue')
  },
  {
    path: '/failed',
    name: 'failed',
    component: () => import('@/views/Failed.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
